﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GroupPermissionList.aspx.cs"
    Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <!--#include virtual="include/Head.ascx"-->

    <script type="text/javascript">
      function doDelete(strID, strName)
        {
            if (confirm('Bạn có thực sự muốn xóa nhóm quyền: ' + strName + ' ?' ))
            {
                            
                    window.location.href = "GroupPermissionList.aspx?action=delete&groupID=" + strID;
            }
        }
    </script>

</head>
<body>
    <div id="body-wrapper">
        <div id="header">
            <!--#include virtual="include/top.ascx"-->
        </div>
        <div id="main-content1">
            <div class="">
            </div>
            <h2>
                Danh sách nhóm quyền</h2>
            <div class="clear">
            </div>
            <div class="content-box">
                <form id="frmEdit" runat="server" method="post">
                    <div class="content-box">
                        <div class="content-box-header">
                            <p align='right' style="padding-right: 20px; padding-top: 5px; font-size: 16px; font-weight: bold;">
                                <a class="toolbar" href="GroupPermission.aspx">Add New </a>
                            </p>
                            <div class="clear">
                            </div>
                        </div>
                    </div>
                    <fieldset>
                        <asp:Repeater ID="rptGroupPermissionList" runat="server">
                            <ItemTemplate>
                                <tr onmouseover="this.style.background='#dbf0c9'" onmouseout="this.style.background='#ffffff'">
                                    <td align="center">
                                        <%# DataBinder.Eval(Container.DataItem, "Index")%>
                                    </td>
                                    <td align="center">
                                        <%# DataBinder.Eval(Container.DataItem, "Name")%>
                                    </td>
                                    <td align="center">
                                        <%# DataBinder.Eval(Container.DataItem, "Code")%>
                                    </td>
                                    <td align="center">
                                        <%# DataBinder.Eval(Container.DataItem, "Description")%>
                                    </td>
                                    <td align="center">
                                        <%# DataBinder.Eval(Container.DataItem, "Action")%>
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <HeaderTemplate>
                                <table cellspacing="0" cellpadding="0" width="100%" border="0" class="adminlist">
                                    <thead>
                                        <tr>
                                            <th align="center" class="thheader" width="30px">
                                                Stt</th>
                                            <th align="center" class="thheader" width="150px">
                                                Tên nhóm quyền</th>
                                            <th align="center" class="thheader" width="150px">
                                                Mã nhóm quyền</th>
                                            <th align="center" class="thheader" width="150px">
                                                Ghi chú</th>
                                            <th align="center" class="thheader" width="100px">
                                                Action</th>
                                        </tr>
                                    </thead>
                            </HeaderTemplate>
                            <FooterTemplate>
                                </TABLE>
                            </FooterTemplate>
                        </asp:Repeater>
                    </fieldset>
                    <div class="clear">
                    </div>
                </form>
            </div>
            <div id="footer">
                <%=strPager%>
            </div>
            </div>
    </div>
</body>
</html>
